﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<SelectListItem>>" %>
<td>
    <% using (Ajax.BeginForm("IndexBody",

       new AjaxOptions
       {
           UpdateTargetId = "IndexBody",
           InsertionMode = InsertionMode.Replace           
       }
        ))
       { %>
    <%= Html.DropDownList("StatTypeId", (SelectList)ViewData["GetStatTypeDDL"])%>
    <%= Html.DropDownList("GameTypeId", (SelectList)ViewData["GetGameTypesDDL"], new { onchange ="this.form.onsubmit()" })%>

    <input type="submit" value="Submit" /><br />

    <% } %>
</td>
